from pathlib import Path

FILE_PATH = Path() / "file"

USER_HEAD_IMG_FILE_PATH = FILE_PATH / "user_img"
DEFAULT_USER_HEAD_IMG_FILE_PATH = USER_HEAD_IMG_FILE_PATH / "default_head.png"

VIDEO_FILE_PATH = FILE_PATH / "video"
VIDEO_IMG_FILE_PATH = FILE_PATH / "video" / "img"
VIDEO_CHUNK_FILE_PATH = FILE_PATH / "video_chunk"

def check_path(p: Path):
    if not p.exists():
        p.mkdir(parents=True, exist_ok=True)

check_path(FILE_PATH)

check_path(USER_HEAD_IMG_FILE_PATH)

check_path(VIDEO_FILE_PATH)
check_path(VIDEO_IMG_FILE_PATH)
check_path(VIDEO_CHUNK_FILE_PATH)
